<?php
	if (!(function_exists('login_ex'))){
		$smarty->template_dir = $setupdata['smarty_admin_template_dir'];
		$smarty->display('admin/login.tpl');
		$mysqlclass->close_db();
		include $setupdata['core_dir']."/includes/die.php";
	}
?>

<html STYLE="width: 417px; height: 143px;">
<head><title>Hyperlink</title>
<SCRIPT>
function Link() {
	AnCode = "<a target=\""+document.all.target.value+"\" href=\""+document.all.lin.value+"\">";
	top.opener.window.insertImagePopUp('text<?echo $id?>', AnCode);
	window.close()
}
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<style>
  html, body, button, div, input, select, td, fieldset { font-family: MS Shell Dlg; font-size: 8pt; };
</style>

<BODY id=bdy style="background: threedface; color: windowtext; margin: 10px; BORDER-STYLE: none" scroll=no>


<FIELDSET style="width: 75%; text-align: left">
<LEGEND>Hyperlink information</LEGEND>
<table border=0 cellspacing=8 cellpadding=0>
 <tr>
  <td height=21>Target:</td>
  <td>
   <select name="target" size=1>
   <option value="_blank">New</option>
   <option value="_self" selected>Self</option>
   </select>
  </td>
 </tr>
 <tr>
  <td><nobr>URL:</nobr></td>
  <td><input type="text" name="lin" value="http://" size=40></td>
 </tr>
</table>
</FIELDSET>

<div style="left: 300px; top: 16px; position: absolute">
 <BUTTON style="width: 7em; height: 2.2em; margin: 0 0 3 0" type=submit onClick="Link()">OK</BUTTON><br>
 <BUTTON style="width: 7em; height: 2.2em; " type=reset onClick="window.close();">Cancel</BUTTON>
</div>

</BODY>
</html>